-- =============================================
-- Author:		Rodrigo Martins
-- Create date: 01/10/2013
-- Description:	Inserir Evento
-- =============================================
CREATE PROCEDURE ai_sp_inserirEvento
	@id int output,	
	@descricao varchar(255),
	@data smallDateTime,
	@id_academia int
	
AS
BEGIN

	INSERT INTO [Evento]
           ([descricao]
           ,[data],
		   id_academia
		   )
     VALUES
           (@descricao
           ,@data
		   ,@id_academia
           )

   select @id = @@IDENTITY

END
GO
